﻿package com.hodgedev.net.drupal 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Brian Hodge
	 */
	public class CommentEvent extends Event 
	{
		public static const SAVE_COMPLETE		:String = "saveComplete";
		public static const NODE_COMMENTS_READY	:String = "nodeCommentsReady";
		public var cid:int;
		public var data:Array = [];
		
		public function CommentEvent(type:String, pCID:int=0, pData:Array = null, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			cid = pCID;
			data = pData;
		} 
		
		public override function clone():Event 
		{ 
			return new CommentEvent(type, cid, data, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("CommentEvent", "cid", "data", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}